package com.zhuss.advice.db.dao.ext;

import com.zhuss.advice.db.dao.gen.ComplaintMapper;
import com.zhuss.advice.db.entity.Complaint;
import com.zhuss.bean.bo.advice.Complaint.SearchComplaintBo;
import com.zhuss.bean.vo.advice.complaint.DetailComplaintVo;
import com.zhuss.bean.vo.advice.complaint.ListComplaintVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ComplaintDao extends ComplaintMapper{

    void create (Complaint record);

    void delete (Complaint record);

    List<ListComplaintVo> list(SearchComplaintBo bo);

    Integer countList(SearchComplaintBo bo);

    DetailComplaintVo detail(@Param("complaintId")Long complaintId);

    List<ListComplaintVo> handleList(SearchComplaintBo bo);

    Integer handleCount(SearchComplaintBo bo);
}